Skip to content

updated spawning page#1011

Open
mosemister wants to merge 2 commits intostablefrom
task/spawning-entity
Open

updated spawning page#1011
mosemister wants to merge 2 commits intostablefrom
task/spawning-entity

Conversation

@mosemister
Copy link
Copy Markdown
Member

@mosemister mosemister commented Aug 19, 2024

Updates the spawning page to API 8 information

@mosemister mosemister added needs review The submission is ready and needs to be reviewed outdated docs The API has changed and the docs are outdated labels Aug 19, 2024
@mosemister mosemister added this to the v8.0.0 milestone Aug 19, 2024
Copy link
Copy Markdown
Member

@Inscrutable Inscrutable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I'm back.
Creaper sounds like Firefly meets MC.


You will need three things for spawning an :javadoc:`Entity`: a :javadoc:`Location`, an :javadoc:`Extent`, and an
:javadoc:`EntityType`. The process for getting these is quite simple, you just need to grab a ``Location`` from
You will need three things for spawning an :javadoc:`Entity`: a **Position** as a ``Vector3d``, an :javadoc:`World`, and an
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be "a World", not an.

ServerWorld world = spawnLocation.world();

Entity creeper = world.createEntity(EntityTypes.CREEPER, spawnLocation.getPosition());
Creaper creeper = world.createEntity(EntityTypes.CREEPER, spawnLocation.getPosition());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really meant to be "Creeper" instead of "Creaper"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review The submission is ready and needs to be reviewed outdated docs The API has changed and the docs are outdated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants